package com.hgkj.cloud.base.service;

import com.hgkj.cloud.base.common.PageInfo;
import com.hgkj.cloud.base.domain.TenantQuestionnaireQuestion;

import java.util.List;
import java.util.Map;

public interface TenantQuestionnaireQuestionService {

    int deleteByPrimaryKey(Long id);

    int insert(TenantQuestionnaireQuestion record);

    int insertSelective(TenantQuestionnaireQuestion record);

    TenantQuestionnaireQuestion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TenantQuestionnaireQuestion record);

    int updateByPrimaryKey(TenantQuestionnaireQuestion record);

    TenantQuestionnaireQuestion getQnQuestionById(Map<String, Object> map);

    List<TenantQuestionnaireQuestion> listAllQnQuestions(PageInfo pi, Map<String, Object> map);

    long listAllQnQuestionsCount(Map<String, Object> map);

    List<TenantQuestionnaireQuestion> listQnQuestionAllList(Long questionnaire_id);

    int delQnQuestion(Long questionnaire_id);

    List<Map<String, Object>> getQUandAnScore(String questionnaire_id);

    Map<String,Object> getQNQuestion(Map<String, Object> map);
}
